"""
通知系统URL配置
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

# 创建路由器
router = DefaultRouter()
router.register(r'notifications', views.NotificationViewSet, basename='notification')
router.register(r'templates', views.NotificationTemplateViewSet, basename='notification_template')

urlpatterns = [
    # ViewSet路由
    path('', include(router.urls)),

    # 发送通知
    path('send/', views.send_notification, name='send_notification'),
    path('send-bulk/', views.send_bulk_notification, name='send_bulk_notification'),

    # 获取用户列表
    path('users/', views.get_users_for_notification, name='get_users_for_notification'),
]
